import request from '@/utils/request'

// 获取房间列表
export const getOrderList = (query) => {
  return request({
    url: '/system/order/list',
    method: 'get',
    params: query
  })
}
//删除
export const DelRoom= (id) => {
  return request({
    url: '/system/hotel/room/del/'+id,
    method: 'get'
  })
}
//新增/修改
export const addOrUpdate = (query) => {
  return request({
    url: '/system/hotel/room/addOrUpdate ',
    method: 'post',
    data: query
  })
}

//房间详情
export const GetDetail = (id) => {
  return request({
    url: '/system/order/list/'+id,
    method: 'get'
  })
}
export const ResetPwd = (params) => {
  return request({
    url: '/system/order/reset/pwd',
    method: 'get',
    params:params
  })
}
export const SetRoom = (query) => {
  return request({
    url: '/system/order/update/room',
    method: 'post',
    data: query
  })
}
export const Refund = (query) => {
  return request({
    url: '/system/order/refund',
    method: 'get',
    params: query
  })
}

